package sicnu.cs.aps.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import sicnu.cs.aps.domain.entity.SubAdmin;

/**
 * SubAdminMapper
 *
 * @author chenhetao
 * @version 1.0
 * @className SubAdminMapper
 * @packageName sicnu.cs.aps.mapper
 * @date 2022/6/3 18:07
 */
@Mapper
public interface SubAdminMapper {
    /**
     * 通过 id获取实体类
     *
     * @param id id
     * @return 子用户信息
     */
    SubAdmin getSubAdminById(@Param("id") Long id);

    /**
     * 通过id 获取 父id
     *
     * @param id id
     * @return 父id
     */
    Long getFatherIdById(@Param("id") Long id);
}
